<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<head>
<jsp:include page="../common/common.jsp" />
</head>
<body class="page-header-fixed">
	<jsp:include page="../common/header.jsp" />

	<div class="clearfix"></div>
	<div class="page-container">
		<div class="page-sidebar-wrapper"><jsp:include
				page="../common/menu.jsp" /></div>
		<div class="page-content-wrapper">
			<div class="page-content">
				<div class="row">
					<div class="col-md-12">
						<form class="form-horizontal form-row-seperated" id="form"
							method="post" action="${path}/CRateOrder/save">
							<div class="portlet box purple">
								<div class="portlet-title">
									<div class="caption">
										<i class="fa fa-shopping-cart"></i>基础数据详细内容
									</div>
									<div class="actions btn-set">
										<a href="javascript:history.go(-1);" class="btn default"><i
											class="fa fa-angle-left"></i> 返回</a>
										<button type="button" onclick="save()" class="btn blue">
											<i class="fa fa-check"></i> 保存
										</button>
									</div>
								</div>
								<div class="portlet-body">
									<div class="tabbable">
										<div class="tab-content no-space">
											<div class="tab-pane active" id="tab_general">
												<div class="form-body">

											 	 		<div class="form-group"  >
														<label class="col-md-2 control-label">订单号: <span
															class="required"> </span>
														</label>

														<div class="col-md-5">
															<input type="text" id="orderNo" name="orderNo"
																class="form-control measure-input"
																value="${data.orderNo}"   />
														</div>
													
													</div>
  											
  											<div class="form-group"  >
														<label class="col-md-2 control-label">商户号: <span
															class="required"> </span>
														</label>

														<div class="col-md-5">
															<input type="text" id="mch_id" name="mch_id"
																class="form-control measure-input"
																value="${data.mch_id}"   />
														</div>
													
													</div>
													
													<div class="form-group"  >
														<label class="col-md-2 control-label">用户id: <span
															class="required"> </span>
														</label>

														<div class="col-md-5">
															<input type="text" id="memberid" name="memberid"
																class="form-control measure-input"
																value="${data.memberid}"   />
														</div>
													</div>
													
													<div class="form-group"  >
														<label class="col-md-2 control-label">商品id: <span
															class="required"> </span>
														</label>

														<div class="col-md-5">
															<input type="text" id="productxid" name="productxid"
																class="form-control measure-input"
																value="${data.productxid}"   />
														</div>
													</div>
													
															<div class="form-group"  >
														<label class="col-md-2 control-label">加减金额: <span
															class="required"> </span>
														</label>

														<div class="col-md-5">
															<input type="text" id="total" name="total"
																class="form-control measure-input"
																value="${data.productxid}"   />
														</div>
													</div>
													
													<div class="form-group"  >
														<label class="col-md-2 control-label">时间: <span
															class="required"> </span>
														</label>

														<div class="col-md-5">
															<input type="text" id="createTime" name="createTime"
																class="form-control measure-input"
																value="${data.createTime}"   onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
														</div>
														<div class="col-md-5">
															<!--                                                         &nbsp;可输入<b><span id="title_len">32</span></b> 个字符 -->
														</div>
													</div>
												
  									
								 
											 
												
												</div>
											</div>
										</div>
									</div>
								</div>

								<div class="portlet-title">
									<div class="actions btn-set">
										<a href="javascript:history.go(-1);" class="btn default"><i
											class="fa fa-angle-left"></i> 返回</a>
										<button type="button" onclick="save()" class="btn blue">
											<i class="fa fa-check"></i> 保存
										</button>
									</div>
								</div>
							</div>
							<input type="hidden" id="id" name="id" value="${data.id}">
							 
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<jsp:include page="../common/footer.jsp" />
	<script type="text/javascript" src="${path}/assets/plugins/calendar/WdatePicker.js"></script>
	
<script src="${path}/assets/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="${path}/assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js"></script>

<script type="text/javascript" src="${path}/assets/plugins/jquery-inputmask/jquery.inputmask.bundle.min.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/jquery.input-ip-address-control-1.0.min.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/jquery.pwstrength.bootstrap/src/pwstrength.js"></script>
<script type="text/javascript" src="${path}/assets/scripts/custom/components-form-tools.js"></script>
<script type="text/javascript" src="${path}/assets/scripts/biz/ajaxfileupload.js"></script>

	<script>
	function save(){
		if ($("#mch_id").val() != null && $("#mch_id").val() != "") {						
						
		
					           App.ajax(_path + "/pointRecord/save", $("form").serialize(), function (data) {
					               if (data.statusCode == 200) {
					               App.bubble(200, "更新成功！");
					            //  alert("更新成功")
					                   window.setTimeout(function(){
					                       window.location.href = _path + "/pointRecord/list";
					                   },400); 
					               } else {
					                  App.bubble(500, "信息失败！");
					                     // alert("信息失败")
					               }
					           });
					   
		}else{
			alert("请填写商户号.")
		}
	}
	
		
		
 
	    
	 
	</script>
</body>
</html>